<?php

class ControllerInformationBank extends Controller {
	public function index() {
		$this->language->load('information/bankaccount');
		
    	$this->data['heading_title'] = $this->language->get('heading_title');
    	
		$this->data['text_bankinfo'] = $this->language->get('text_bankinfo');
    	$this->data['text_banktext'] = $this->language->get('text_banktext');
		
		$this->load->model('catalog/bankaccount');
		$this->load->model('tool/seo_url');
		
		
		$this->data['bank_header_img'] = "image/data/bank_header.jpg";
		
		
		$this->data['bankaccounts'] = array();

		foreach ($this->model_catalog_bankaccount->getBankaccount() as $result) {
      		$this->data['bankaccounts'][] = array(
        		'name' => $result['name'],
				'number' => $result['number'],
				'width' => $result['width'],
				'height' => $result['height'],
				'image' => $result['image']
	    		
      		);
    	}
		$this->children = array(
				'common/column_right',
				'common/footer',
				'common/column_left',
				'common/header'
			);
		$this->id = 'bankaccount';

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/bankaccount.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/information/bankaccount.tpl';
		} else {
			$this->template = 'default/template/information/bankaccount.tpl';
		}
		
		$this->response->setOutput($this->render(TRUE), $this->config->get('config_compression'));
	}
}
?>